.class Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;
.super Ljava/lang/Object;
.source "PictureGalleryActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    .prologue
    .line 213
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/4 v4, 0x1

    .line 217
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mViewPager:Landroid/support/v4/view/ViewPager;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$700(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Landroid/support/v4/view/ViewPager;

    move-result-object v2

    invoke-virtual {v2}, Landroid/support/v4/view/ViewPager;->getCurrentItem()I

    move-result v0

    .line 218
    .local v0, "curPos":I
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_c
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v1, v2, :cond_2f

    .line 219
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mPictures:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$000(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/brixd/niceapp/community/model/PictureModel;

    if-ne v0, v1, :cond_2d

    move v3, v4

    :goto_27
    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/community/model/PictureModel;->setIsCover(Z)V

    .line 218
    add-int/lit8 v1, v1, 0x1

    goto :goto_c

    .line 219
    :cond_2d
    const/4 v3, 0x0

    goto :goto_27

    .line 222
    :cond_2f
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->updateSetBCoverBtnStatus(Z)V
    invoke-static {v2, v4}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$300(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;Z)V

    .line 223
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    # setter for: Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->mIsDirty:Z
    invoke-static {v2, v4}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->access$802(Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;Z)Z

    .line 224
    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity$4;->this$0:Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/community/activity/PictureGalleryActivity;->finish()V

    .line 225
    return-void
.end method
